-- GENERATED SPELL FOR [Defias Conjuror] --


function spell0_23590(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(9053,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23590', 3000, 1)
end

function spell1_23590(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_23590', 0, 1)
end

function Sorts_23590(pUnit, Event)
local choix_sorts_23590 = math.random(0, 1)
if choix_sorts_23590 == 0 then
pUnit:RegisterEvent('spell0_23590', 1, 1)
end
if choix_sorts_23590 == 1 then
pUnit:RegisterEvent('spell1_23590', 1, 1)
end
end

function mob23590_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23590', math.random(1500, 3000), 1)
end

function mob23590_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23590_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23590_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23590, 1, 'mob23590_Action')
RegisterUnitEvent(23590, 2, 'mob23590_Leave')
RegisterUnitEvent(23590, 3, 'mob23590_Kill')
RegisterUnitEvent(23590, 4, 'mob23590_Die')
